Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: upgrade Grit and remove im crate #4232

Merged
merged 3 commits into from
Oct 10, 2024

Conversation

arendjr
Copy link
Contributor

@arendjr arendjr commented Oct 10, 2024

Summary

Upgrades Grit crates to 0.4. Main difference is a change I made to remove the im crate as a dependency entirely. This resulted in a rougly 25-30% performance improvement in our Grit benchmarks, at least locally.

Another nice effect is that our biome_grit_patterns crate no longer depends on anyhow, though other Biome crates still do.

Test Plan

CI should remain green.

@arendjr arendjr requested review from a team October 10, 2024 08:28
@github-actions github-actions bot added A-Changelog Area: changelog L-Grit Language: GritQL labels Oct 10, 2024
Copy link
Member

@ematipico ematipico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And we also removed anyhow. Great job :)

Copy link

codspeed-hq bot commented Oct 10, 2024

CodSpeed Performance Report

Merging #4232 will improve performances by 19.33%

Comparing arendjr:upgrade-grit-remove-im (a2b40f7) with main (7c0832b)

Summary

⚡ 5 improvements
✅ 100 untouched benchmarks

Benchmarks breakdown

Benchmark main arendjr:upgrade-grit-remove-im Change
checker_6456328407951392140.ts[execute] 4.4 s 3.9 s +13.3%
ios.d_12216376241674358710.d.ts[execute] 4.5 s 3.8 s +17.87%
parser_13571644119461115204.ts[execute] 107.1 ms 89.7 ms +19.33%
router_17129688031671448157.ts[execute] 33 ms 27.8 ms +18.44%
db_17847247775464589309.json[cached] 13.7 ms 12.9 ms +6.32%

@arendjr arendjr merged commit 2e5e3f2 into biomejs:main Oct 10, 2024
12 checks passed
arendjr added a commit to arendjr/biome that referenced this pull request Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Changelog Area: changelog L-Grit Language: GritQL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants